#include <stdlib.h>
#include "array.h"
#include "types.h"

void initArray(command_c** array, int* length) {
	*array = (command_c*)malloc(*length * sizeof(command_c));
}

void increaseArray(command_c** array, int* length) {
	*length *= 4;
	*array = (command_c*)realloc(*array, *length * sizeof(command_c));
}

void freeArray(command_c** array) {
	free(*array);
}